package entity

import (
	"gluenet/modules/manager/server/domain/po"
	"gluenet/modules/manager/server/infra"
)

type Link struct {
	infra.Entity `xorm:"-" json:"-"`
	po.Link      `xorm:"extends"`
}

func (r *Link) Identity() string {
	return r.Link.ID
}

func (r *Link) New(OId string, CId string) {
	r.ID = infra.NewID()
	r.ObjectGUID = OId
	r.ControllerGUID = CId
}
